package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WarehouseOutDetailsMapper;
import com.ruoyi.system.domain.WarehouseOutDetails;
import com.ruoyi.system.service.IWarehouseOutDetailsService;

/**
 * 出库明细表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-26
 */
@Service
public class WarehouseOutDetailsServiceImpl implements IWarehouseOutDetailsService 
{
    @Autowired
    private WarehouseOutDetailsMapper warehouseOutDetailsMapper;

    /**
     * 查询出库明细表
     * 
     * @param warehouseOutDetailsId 出库明细表主键
     * @return 出库明细表
     */
    @Override
    public WarehouseOutDetails selectWarehouseOutDetailsByWarehouseOutDetailsId(String warehouseOutDetailsId)
    {
        return warehouseOutDetailsMapper.selectWarehouseOutDetailsByWarehouseOutDetailsId(warehouseOutDetailsId);
    }

    /**
     * 查询出库明细表列表
     * 
     * @param warehouseOutDetails 出库明细表
     * @return 出库明细表
     */
    @Override
    public List<WarehouseOutDetails> selectWarehouseOutDetailsList(WarehouseOutDetails warehouseOutDetails)
    {
        return warehouseOutDetailsMapper.selectWarehouseOutDetailsList(warehouseOutDetails);
    }

    /**
     * 新增出库明细表
     * 
     * @param warehouseOutDetails 出库明细表
     * @return 结果
     */
    @Override
    public int insertWarehouseOutDetails(WarehouseOutDetails warehouseOutDetails)
    {
        return warehouseOutDetailsMapper.insertWarehouseOutDetails(warehouseOutDetails);
    }

    /**
     * 修改出库明细表
     * 
     * @param warehouseOutDetails 出库明细表
     * @return 结果
     */
    @Override
    public int updateWarehouseOutDetails(WarehouseOutDetails warehouseOutDetails)
    {
        return warehouseOutDetailsMapper.updateWarehouseOutDetails(warehouseOutDetails);
    }

    /**
     * 批量删除出库明细表
     * 
     * @param warehouseOutDetailsIds 需要删除的出库明细表主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseOutDetailsByWarehouseOutDetailsIds(String[] warehouseOutDetailsIds)
    {
        return warehouseOutDetailsMapper.deleteWarehouseOutDetailsByWarehouseOutDetailsIds(warehouseOutDetailsIds);
    }

    /**
     * 删除出库明细表信息
     * 
     * @param warehouseOutDetailsId 出库明细表主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseOutDetailsByWarehouseOutDetailsId(String warehouseOutDetailsId)
    {
        return warehouseOutDetailsMapper.deleteWarehouseOutDetailsByWarehouseOutDetailsId(warehouseOutDetailsId);
    }
}
